/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package horsechess.server.data;

import java.util.Vector;

/**
 *
 * @author Administrator
 */
public class ServerInfo {
    public String serverAddress;
    public int port;
    public Vector<String> rooms;

    public ServerInfo(String serverAddress, int port) {
        this.serverAddress = serverAddress;
        this.port = port;
        
    }

    public void setRoom(String msg)
    {
         rooms=new Vector<String>();
       String[] strs=msg.split("-");
        for (int i = 1; i < strs.length; i++) {
            String room = strs[i];
            rooms.add(room);
        }
    }
}
